//
//  BaseListViewController.h
//  CharonTVProject
//
//  Created by karong on 2023/6/6.
//

#import "BaseController.h"


NS_ASSUME_NONNULL_BEGIN
@protocol ListViewProtocol <NSObject>

- (UIScrollView *)listView;
- (void)refreshData;
///自动下拉刷新
- (BOOL)disableAutoBeginRefresh;

@end

@interface BaseListViewController : BaseController <ListViewProtocol, DZNEmptyDataSetSource, DZNEmptyDataSetDelegate>
@property (nonatomic, assign) ListViewEmptyState emptyState; // 显示空状态
@property (nonatomic, assign, getter=isLoading) BOOL loading;   // 是否正在加载
- (void)setEmptyStateTitle:(NSString *)title state:(ListViewEmptyState)state;
- (void)setEmptyStateImage:(NSString *)image state:(ListViewEmptyState)state;
@end

NS_ASSUME_NONNULL_END
